<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="/lms/reader/css/readerSearchResult.css" rel="stylesheet"
	type="text/css" />
<script src="/lms/reader/js/jquery.js" type="text/javascript"></script>
<title>Search Result</title>


<SCRIPT language=javascript>
	function checkform() {
		if (readerSearchForm.lyInput.value == "") {
			alert("请输入查询信息！");
			readerSearchForm.lyInput.focus();
			return false;
		}
		return true;
	}
</SCRIPT>


</head>
<body>
	<div id="container">
		<div id="iframe1">
			<div id="title">
				<div id="left">
					<img src="/lms/img/main/ifleft.gif" style="float: left" /> <span
						class="t1"><b>检索结果</b></span>
				</div>
				<!--left-->
				<!--right-->
			</div>

			<s:form namespace="/book" action="bookSearch" name="readerSearchForm"
				method="post" onsubmit="return checkform();">
				<table width="630" height="60" border="1" bordercolor="#fff"
					frame="void">
					<tr>
						<td width="115" height="62" class="td2">
							<div align="center">
								<s:select list="{'题名','作者'}" name="selectType" theme="simple">
								</s:select>
							</div>
						</td>
						<td width="396"><div align="left">
								<s:textfield name="readerSearch" id="lyInput" theme="simple">
								</s:textfield>
							</div></td>
						<td width="97" class="td2">
							<div align="left">
								<input name="readerSearchButton" type="submit"
									id="readerSearchButton" value="检索" />
							</div>
						</td>
					</tr>
				</table>
			</s:form>


			<div id="table">
				<table class="table1" border="1" cellspacing="0" cellpadding="0">
					<tr class="tr1">
						<td width="54" height="27" class="t3">
							<div align="center">序号</div>
						</td>
						<td width="210" class="t3">
							<div align="center">题名</div>
						</td>
						<td width="84" class="t3">
							<div align="center">
								<span class="t3">作者</span>
							</div>
						</td>
						<td width="134" class="t3">
							<div align="center">
								<span class="t3">出版社</span>
							</div>
						</td>
						<td width="130" class="t3">
							<div align="center">标准号</div>
						</td>
						<td width="59" class="t3">
							<div align="center">
								<span class="t3">出版年</span>
							</div>
						</td>
						<td width="57" class="t3">
							<div align="center">馆藏数</div>
						</td>

						<!-- 这个属性需要使用连表查询
						<td width="59" class="t3">
							<div align="center">
								<span class="t3">可借数</span>
							</div>
						</td>
						-->
					</tr>
					<s:iterator value="list" id="book" status="st">
						<tr>
							<td height="36" class="t4">
								<div align="center">
									<s:property value='#st.index +1' />
								</div>
							</td>
							<td class="t4">
								<div align="center">
									<span class="t4 t4 t4"><a href="readerBookInfo.html"><s:property
												value="bookName" /></a></span>
								</div>
							</td>
							<td class="t4"><div align="center">
									<span class="t4"><s:property value="bookAuthor" /></span>
								</div></td>
							<td class="t4"><div align="center">
									<s:property value="bookPress" />
								</div></td>
							<td class="t4"><div align="center">
									<s:property value="bookISBN" />
								</div></td>
							<td class="t4"><div align="center">
									<s:property value="bookPublicationDate" />
								</div></td>
							<td class="t4"><div align="center">
									<s:property value="bookCopyNumber" />
								</div></td>
						</tr>
					</s:iterator>
				</table>
			</div>
			<!--table-->
		</div>
		<!--iframe1-->
	</div>
</body>
</html>
